Police have stepped up security in Times Square and other locations around the city following the deadly attack in Barcelona.